package ioliu;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class zijieliu {
    public static void main(String[] args) throws IOException {
        File file = new File("C:\\file\\c.txt");
        FileInputStream files= new FileInputStream(file);

        for (int i = 0; i < 12; i++) {
            System.out.println((char)files.read() );
        }
//  byte[] by=new byte[12];
//       files.read(by);
//        String s = new String(by);
//        System.out.println(s);


    }
}
